<form class="layui-form" method="post" action="group_add.html" >
  <div class="layui-form-item">
    <label class="layui-form-label">用户组</label>
    <div class="layui-input-block">
      <input type="text" name="group" required  lay-verify="required" placeholder="以数字为分组" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">别名</label>
    <div class="layui-input-block">
      <input type="text" name="name" required lay-verify="required" placeholder="请输入别名" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">     
      <button class="layui-btn" lay-submit lay-filter="*">立即提交</button> 
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
<script> 
layui.use('form', function(){
  var form = layui.form;  
  form.render();
  form.on('submit(*)', function(data){
    return post('添加成功','分组或别名已存在！');
  });
});
</script>
